package com.solutec.tag16interfaces.figuren;

public class Kreis implements Figur, Comparable<Kreis> {
	int radius;

	public Kreis(int radius) {
		this.radius = radius;
	}

	public String toString() {
		return "Kreis. R = " + radius;
	}
	
	public double getFlaeche() {
		return radius*radius*Math.PI;
	}
	
	//Kreis k1, R = 40
	//Kreis k2, R = 20
	public int compareTo(Kreis k2) {
		return radius - k2.radius;
	}
	
}
